package com.zjw.zy.ext

import com.zjw.zy.utils.TimeUtils
import java.util.*
import java.util.regex.Pattern

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2022/9/30 9:11
 * @description：
 */


fun Date.string(): String = TimeUtils.formatDate(this)

fun Date.string(pattern: String): String = TimeUtils.formatDate(this, pattern)